﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    public static class asd
    {
        public static Boolean isPrime(int a)
        {

            int i;
            if (a < 2)
            {
                return false;

            }
            else
            {
                for (i = 2; i < a; i++)
                {
                    if (a % i == 0)
                    {
                        return true;
                    }
                }
                return false;
            }
        }
        
        public static Boolean isEven(int a)
        {
        
            if (a % 2 == 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            int a=Console.Read();
            Boolean m=asd.isPrime(a);
            Boolean n=asd.isEven(a);
            if (m == false)
            {
                Console.WriteLine("为质数");
            }
            else
            {
                Console.WriteLine("不为质数");
            }

            if (n == true)
            {
                Console.WriteLine("为偶数");
            }
            else
            {
                Console.WriteLine("为奇数");
            }

        }
    }
}
